﻿@using DevExpress.Web.Mvc.UI
@using Dogshow.Web.Models
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/layout.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/mybootstrap.min.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/mybootstrap.min.js")" type="text/javascript"></script>

    <script src="@Url.Content("~/Scripts/dogshow.js")" type="text/javascript"></script>
    @Html.DevExpress().GetScripts(
           new Script { ExtensionSuite = ExtensionSuite.GridView },
           new Script { ExtensionSuite = ExtensionSuite.Editors },
           new Script { ExtensionSuite = ExtensionSuite.NavigationAndLayout }
           //new Script { ExtensionSuite = ExtensionSuite.Report }
     )
    @Html.DevExpress().GetStyleSheets(
           new StyleSheet { ExtensionSuite = ExtensionSuite.GridView, Theme = "DevEx" },
           new StyleSheet { ExtensionSuite = ExtensionSuite.Editors, Theme = "DevEx" },
           new StyleSheet { ExtensionSuite = ExtensionSuite.NavigationAndLayout }
           //new StyleSheet { ExtensionSuite = ExtensionSuite.Report }
     )
</head>
<body>
    
    <header id="mainHeader">
        <a href="@Url.Action("Index", "Home")"><img id="logo" src="@Url.Content("~/Content/images/DogshowLogo.png")" alt="Logo" width="150" height="48"/></a>
        <div id="user">
            @Html.Action("VratiKorisnika", "Home", new {Area = ""})
        </div>
    </header>
    <section id="container">
        <nav id="navbar">
            @Html.Action("UcitajNavigaciju", "Home", new { Area = "" })
        </nav>
        <article id="content">
        @{
            var status = TempData["Status"] as Status;
            if (status != null)
            {
                switch(status.Type)
                {
                    case StatusType.Info:
                        <div class="alert alert-info">
                          <button class="close" data-dismiss="alert">×</button>
                          <strong>Info!</strong> @status.Message
                        </div>
                        break;
                    case StatusType.Success:
                        <div class="alert alert-success">
                          <button class="close" data-dismiss="alert">×</button>
                          <strong>Uspešna operacija!</strong> @status.Message
                        </div>
                        break;
                    case StatusType.Warning:
                        <div class="alert">
                          <button class="close" data-dismiss="alert">×</button>
                          <strong>Upozorenje!</strong> @status.Message
                        </div>
                        break;
                    case StatusType.Error:
                        <div class="alert alert-error">
                            <button class="close" data-dismiss="alert">×</button>
                            <strong>Greška!</strong> @status.Message
                        </div>
                        break;
                }
            }
        }
            @RenderBody()
        </article>
    </section>
</body>
</html>
